package example.my_practice;

import example.entity.User;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @author guoQ.z
 * @date 2020/11/24 18:06
 * TODO
 */
public class Practice04_map {

    public static void main(String[] args) {
        List<User> list = new ArrayList<>();
        List<String> collect = list.stream().map(User::getName).collect(Collectors.toList());
        System.out.println(collect);
    }

}
